export default{
    namespaced: true,
    state: {
        hotList:[],
        historyList:[],
        resultList : [],
    },
    // 修改数据
    mutations: {
        sethot(state,value){
            state.hotList = value;
        },
        sethistoryList(state,value){
            state.historyList = value;
        },
        setresultList(state,value){
            state.resultList = value;
        },
    },
    // 提交修改的行为 
    actions: {
        sethotAsync(content,value){
            content.commit('sethot',value)
        },
        sethistoryAsync(content,value){
            content.commit('sethistoryList',value)
        },
        setresultAsync(content,value){
            content.commit('setresultList',value)
        },
    }
}